package com.yhos.platform.oopston.base.enums;

public enum ShippingMethodEnum {

    PK0009(new Byte("1"), "一沅美国特货专线", "PK0009"),

    PK0010(new Byte("2"), "一沅美国普货专线", "PK0010"),

    PK0011(new Byte("3"), "一沅美国特货挂号", "PK0011"),

    PK0012(new Byte("4"), "一沅美国海运小包", "PK0012"),

    TEST_USPS(new Byte("5"), "渠道测试Robin", "TEST-USPS"),

    USPS01(new Byte("6"), "美国USPS专线小包", "USPS01"),

    USPS02(new Byte("7"), "美国USPS专线小包(山西)", "USPS02"),

    USPS03LAX(new Byte("8"), "USPS03LAX", "USPS03LAX"),

    USPS03LAX1(new Byte("9"), "USPS03LAX-1", "USPS03LAX1"),

    USPSTEST03(new Byte("10"), "USPSTEST03", "USPSTEST03"),

    YYTK(new Byte("11"), "顺丰渠道", "YYTK");

    private Byte key;

    private String name;

    private String value;

    ShippingMethodEnum(Byte key, String name, String value) {
        this.key = key;
        this.name = name;
        this.value = value;
    }

    public Byte getKey() {
        return key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public static String getValueByKey(Byte key){
        for(ShippingMethodEnum tempEnum : ShippingMethodEnum.values()){
            if(tempEnum.getKey().equals(key)){
                return tempEnum.getValue();
            }
        }
        return null;
    }
}
